const http = require('http')
const fs = require('fs')
const path = require('path')
const server = http.createServer()

server.on('request', (req, res) => {
  if (req.url == '/api/province'){
    fs.readFile(path.join(__dirname, './12312/province.json'),(err,data)=>{
      res.end(data.toString())
    })
  }
})
server.listen(5200, '192.168.87.34', () => {
  console.log('我监听到了·http://192.168.87.34:5200')
})